package com.elin4it.ssm.pojo;

import java.util.ArrayList;
import java.util.List;

public class GameRoomExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GameRoomExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRoomIdIsNull() {
            addCriterion("room_id is null");
            return (Criteria) this;
        }

        public Criteria andRoomIdIsNotNull() {
            addCriterion("room_id is not null");
            return (Criteria) this;
        }

        public Criteria andRoomIdEqualTo(Integer value) {
            addCriterion("room_id =", value, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdNotEqualTo(Integer value) {
            addCriterion("room_id <>", value, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdGreaterThan(Integer value) {
            addCriterion("room_id >", value, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("room_id >=", value, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdLessThan(Integer value) {
            addCriterion("room_id <", value, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdLessThanOrEqualTo(Integer value) {
            addCriterion("room_id <=", value, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdIn(List<Integer> values) {
            addCriterion("room_id in", values, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdNotIn(List<Integer> values) {
            addCriterion("room_id not in", values, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdBetween(Integer value1, Integer value2) {
            addCriterion("room_id between", value1, value2, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdNotBetween(Integer value1, Integer value2) {
            addCriterion("room_id not between", value1, value2, "roomId");
            return (Criteria) this;
        }

        public Criteria andOpenid1IsNull() {
            addCriterion("openid1 is null");
            return (Criteria) this;
        }

        public Criteria andOpenid1IsNotNull() {
            addCriterion("openid1 is not null");
            return (Criteria) this;
        }

        public Criteria andOpenid1EqualTo(String value) {
            addCriterion("openid1 =", value, "openid1");
            return (Criteria) this;
        }

        public Criteria andOpenid1NotEqualTo(String value) {
            addCriterion("openid1 <>", value, "openid1");
            return (Criteria) this;
        }

        public Criteria andOpenid1GreaterThan(String value) {
            addCriterion("openid1 >", value, "openid1");
            return (Criteria) this;
        }

        public Criteria andOpenid1GreaterThanOrEqualTo(String value) {
            addCriterion("openid1 >=", value, "openid1");
            return (Criteria) this;
        }

        public Criteria andOpenid1LessThan(String value) {
            addCriterion("openid1 <", value, "openid1");
            return (Criteria) this;
        }

        public Criteria andOpenid1LessThanOrEqualTo(String value) {
            addCriterion("openid1 <=", value, "openid1");
            return (Criteria) this;
        }

        public Criteria andOpenid1Like(String value) {
            addCriterion("openid1 like", value, "openid1");
            return (Criteria) this;
        }

        public Criteria andOpenid1NotLike(String value) {
            addCriterion("openid1 not like", value, "openid1");
            return (Criteria) this;
        }

        public Criteria andOpenid1In(List<String> values) {
            addCriterion("openid1 in", values, "openid1");
            return (Criteria) this;
        }

        public Criteria andOpenid1NotIn(List<String> values) {
            addCriterion("openid1 not in", values, "openid1");
            return (Criteria) this;
        }

        public Criteria andOpenid1Between(String value1, String value2) {
            addCriterion("openid1 between", value1, value2, "openid1");
            return (Criteria) this;
        }

        public Criteria andOpenid1NotBetween(String value1, String value2) {
            addCriterion("openid1 not between", value1, value2, "openid1");
            return (Criteria) this;
        }

        public Criteria andOpenid2IsNull() {
            addCriterion("openid2 is null");
            return (Criteria) this;
        }

        public Criteria andOpenid2IsNotNull() {
            addCriterion("openid2 is not null");
            return (Criteria) this;
        }

        public Criteria andOpenid2EqualTo(String value) {
            addCriterion("openid2 =", value, "openid2");
            return (Criteria) this;
        }

        public Criteria andOpenid2NotEqualTo(String value) {
            addCriterion("openid2 <>", value, "openid2");
            return (Criteria) this;
        }

        public Criteria andOpenid2GreaterThan(String value) {
            addCriterion("openid2 >", value, "openid2");
            return (Criteria) this;
        }

        public Criteria andOpenid2GreaterThanOrEqualTo(String value) {
            addCriterion("openid2 >=", value, "openid2");
            return (Criteria) this;
        }

        public Criteria andOpenid2LessThan(String value) {
            addCriterion("openid2 <", value, "openid2");
            return (Criteria) this;
        }

        public Criteria andOpenid2LessThanOrEqualTo(String value) {
            addCriterion("openid2 <=", value, "openid2");
            return (Criteria) this;
        }

        public Criteria andOpenid2Like(String value) {
            addCriterion("openid2 like", value, "openid2");
            return (Criteria) this;
        }

        public Criteria andOpenid2NotLike(String value) {
            addCriterion("openid2 not like", value, "openid2");
            return (Criteria) this;
        }

        public Criteria andOpenid2In(List<String> values) {
            addCriterion("openid2 in", values, "openid2");
            return (Criteria) this;
        }

        public Criteria andOpenid2NotIn(List<String> values) {
            addCriterion("openid2 not in", values, "openid2");
            return (Criteria) this;
        }

        public Criteria andOpenid2Between(String value1, String value2) {
            addCriterion("openid2 between", value1, value2, "openid2");
            return (Criteria) this;
        }

        public Criteria andOpenid2NotBetween(String value1, String value2) {
            addCriterion("openid2 not between", value1, value2, "openid2");
            return (Criteria) this;
        }

        public Criteria andAnswerId1IsNull() {
            addCriterion("answer_id1 is null");
            return (Criteria) this;
        }

        public Criteria andAnswerId1IsNotNull() {
            addCriterion("answer_id1 is not null");
            return (Criteria) this;
        }

        public Criteria andAnswerId1EqualTo(Integer value) {
            addCriterion("answer_id1 =", value, "answerId1");
            return (Criteria) this;
        }

        public Criteria andAnswerId1NotEqualTo(Integer value) {
            addCriterion("answer_id1 <>", value, "answerId1");
            return (Criteria) this;
        }

        public Criteria andAnswerId1GreaterThan(Integer value) {
            addCriterion("answer_id1 >", value, "answerId1");
            return (Criteria) this;
        }

        public Criteria andAnswerId1GreaterThanOrEqualTo(Integer value) {
            addCriterion("answer_id1 >=", value, "answerId1");
            return (Criteria) this;
        }

        public Criteria andAnswerId1LessThan(Integer value) {
            addCriterion("answer_id1 <", value, "answerId1");
            return (Criteria) this;
        }

        public Criteria andAnswerId1LessThanOrEqualTo(Integer value) {
            addCriterion("answer_id1 <=", value, "answerId1");
            return (Criteria) this;
        }

        public Criteria andAnswerId1In(List<Integer> values) {
            addCriterion("answer_id1 in", values, "answerId1");
            return (Criteria) this;
        }

        public Criteria andAnswerId1NotIn(List<Integer> values) {
            addCriterion("answer_id1 not in", values, "answerId1");
            return (Criteria) this;
        }

        public Criteria andAnswerId1Between(Integer value1, Integer value2) {
            addCriterion("answer_id1 between", value1, value2, "answerId1");
            return (Criteria) this;
        }

        public Criteria andAnswerId1NotBetween(Integer value1, Integer value2) {
            addCriterion("answer_id1 not between", value1, value2, "answerId1");
            return (Criteria) this;
        }

        public Criteria andAnswerId2IsNull() {
            addCriterion("answer_id2 is null");
            return (Criteria) this;
        }

        public Criteria andAnswerId2IsNotNull() {
            addCriterion("answer_id2 is not null");
            return (Criteria) this;
        }

        public Criteria andAnswerId2EqualTo(Integer value) {
            addCriterion("answer_id2 =", value, "answerId2");
            return (Criteria) this;
        }

        public Criteria andAnswerId2NotEqualTo(Integer value) {
            addCriterion("answer_id2 <>", value, "answerId2");
            return (Criteria) this;
        }

        public Criteria andAnswerId2GreaterThan(Integer value) {
            addCriterion("answer_id2 >", value, "answerId2");
            return (Criteria) this;
        }

        public Criteria andAnswerId2GreaterThanOrEqualTo(Integer value) {
            addCriterion("answer_id2 >=", value, "answerId2");
            return (Criteria) this;
        }

        public Criteria andAnswerId2LessThan(Integer value) {
            addCriterion("answer_id2 <", value, "answerId2");
            return (Criteria) this;
        }

        public Criteria andAnswerId2LessThanOrEqualTo(Integer value) {
            addCriterion("answer_id2 <=", value, "answerId2");
            return (Criteria) this;
        }

        public Criteria andAnswerId2In(List<Integer> values) {
            addCriterion("answer_id2 in", values, "answerId2");
            return (Criteria) this;
        }

        public Criteria andAnswerId2NotIn(List<Integer> values) {
            addCriterion("answer_id2 not in", values, "answerId2");
            return (Criteria) this;
        }

        public Criteria andAnswerId2Between(Integer value1, Integer value2) {
            addCriterion("answer_id2 between", value1, value2, "answerId2");
            return (Criteria) this;
        }

        public Criteria andAnswerId2NotBetween(Integer value1, Integer value2) {
            addCriterion("answer_id2 not between", value1, value2, "answerId2");
            return (Criteria) this;
        }

        public Criteria andAnswerId3IsNull() {
            addCriterion("answer_id3 is null");
            return (Criteria) this;
        }

        public Criteria andAnswerId3IsNotNull() {
            addCriterion("answer_id3 is not null");
            return (Criteria) this;
        }

        public Criteria andAnswerId3EqualTo(Integer value) {
            addCriterion("answer_id3 =", value, "answerId3");
            return (Criteria) this;
        }

        public Criteria andAnswerId3NotEqualTo(Integer value) {
            addCriterion("answer_id3 <>", value, "answerId3");
            return (Criteria) this;
        }

        public Criteria andAnswerId3GreaterThan(Integer value) {
            addCriterion("answer_id3 >", value, "answerId3");
            return (Criteria) this;
        }

        public Criteria andAnswerId3GreaterThanOrEqualTo(Integer value) {
            addCriterion("answer_id3 >=", value, "answerId3");
            return (Criteria) this;
        }

        public Criteria andAnswerId3LessThan(Integer value) {
            addCriterion("answer_id3 <", value, "answerId3");
            return (Criteria) this;
        }

        public Criteria andAnswerId3LessThanOrEqualTo(Integer value) {
            addCriterion("answer_id3 <=", value, "answerId3");
            return (Criteria) this;
        }

        public Criteria andAnswerId3In(List<Integer> values) {
            addCriterion("answer_id3 in", values, "answerId3");
            return (Criteria) this;
        }

        public Criteria andAnswerId3NotIn(List<Integer> values) {
            addCriterion("answer_id3 not in", values, "answerId3");
            return (Criteria) this;
        }

        public Criteria andAnswerId3Between(Integer value1, Integer value2) {
            addCriterion("answer_id3 between", value1, value2, "answerId3");
            return (Criteria) this;
        }

        public Criteria andAnswerId3NotBetween(Integer value1, Integer value2) {
            addCriterion("answer_id3 not between", value1, value2, "answerId3");
            return (Criteria) this;
        }

        public Criteria andAnswerId4IsNull() {
            addCriterion("answer_id4 is null");
            return (Criteria) this;
        }

        public Criteria andAnswerId4IsNotNull() {
            addCriterion("answer_id4 is not null");
            return (Criteria) this;
        }

        public Criteria andAnswerId4EqualTo(Integer value) {
            addCriterion("answer_id4 =", value, "answerId4");
            return (Criteria) this;
        }

        public Criteria andAnswerId4NotEqualTo(Integer value) {
            addCriterion("answer_id4 <>", value, "answerId4");
            return (Criteria) this;
        }

        public Criteria andAnswerId4GreaterThan(Integer value) {
            addCriterion("answer_id4 >", value, "answerId4");
            return (Criteria) this;
        }

        public Criteria andAnswerId4GreaterThanOrEqualTo(Integer value) {
            addCriterion("answer_id4 >=", value, "answerId4");
            return (Criteria) this;
        }

        public Criteria andAnswerId4LessThan(Integer value) {
            addCriterion("answer_id4 <", value, "answerId4");
            return (Criteria) this;
        }

        public Criteria andAnswerId4LessThanOrEqualTo(Integer value) {
            addCriterion("answer_id4 <=", value, "answerId4");
            return (Criteria) this;
        }

        public Criteria andAnswerId4In(List<Integer> values) {
            addCriterion("answer_id4 in", values, "answerId4");
            return (Criteria) this;
        }

        public Criteria andAnswerId4NotIn(List<Integer> values) {
            addCriterion("answer_id4 not in", values, "answerId4");
            return (Criteria) this;
        }

        public Criteria andAnswerId4Between(Integer value1, Integer value2) {
            addCriterion("answer_id4 between", value1, value2, "answerId4");
            return (Criteria) this;
        }

        public Criteria andAnswerId4NotBetween(Integer value1, Integer value2) {
            addCriterion("answer_id4 not between", value1, value2, "answerId4");
            return (Criteria) this;
        }

        public Criteria andAnswerId5IsNull() {
            addCriterion("answer_id5 is null");
            return (Criteria) this;
        }

        public Criteria andAnswerId5IsNotNull() {
            addCriterion("answer_id5 is not null");
            return (Criteria) this;
        }

        public Criteria andAnswerId5EqualTo(Integer value) {
            addCriterion("answer_id5 =", value, "answerId5");
            return (Criteria) this;
        }

        public Criteria andAnswerId5NotEqualTo(Integer value) {
            addCriterion("answer_id5 <>", value, "answerId5");
            return (Criteria) this;
        }

        public Criteria andAnswerId5GreaterThan(Integer value) {
            addCriterion("answer_id5 >", value, "answerId5");
            return (Criteria) this;
        }

        public Criteria andAnswerId5GreaterThanOrEqualTo(Integer value) {
            addCriterion("answer_id5 >=", value, "answerId5");
            return (Criteria) this;
        }

        public Criteria andAnswerId5LessThan(Integer value) {
            addCriterion("answer_id5 <", value, "answerId5");
            return (Criteria) this;
        }

        public Criteria andAnswerId5LessThanOrEqualTo(Integer value) {
            addCriterion("answer_id5 <=", value, "answerId5");
            return (Criteria) this;
        }

        public Criteria andAnswerId5In(List<Integer> values) {
            addCriterion("answer_id5 in", values, "answerId5");
            return (Criteria) this;
        }

        public Criteria andAnswerId5NotIn(List<Integer> values) {
            addCriterion("answer_id5 not in", values, "answerId5");
            return (Criteria) this;
        }

        public Criteria andAnswerId5Between(Integer value1, Integer value2) {
            addCriterion("answer_id5 between", value1, value2, "answerId5");
            return (Criteria) this;
        }

        public Criteria andAnswerId5NotBetween(Integer value1, Integer value2) {
            addCriterion("answer_id5 not between", value1, value2, "answerId5");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}